<?php
require 'conn.php';

$title = trim($_POST['title']);
$content = $_POST['content'];
$email = $_POST['email'];

$query = mysql_query("insert into feedback (title,content,email) values ('$title','$content','$email')");
if ($query) {
	$su = 3;
}else {
	$su = 0;
}
header("Location: success.php?su=$su");